﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using _4T.Data.IDataContext;
using _4T.DAL;
using _4T.Data;

namespace _4T.BLL
{
    public class ApproveProfileBLL
    {
        //private ICMSApproveProfile _View;
        private ApproveProfileDAL repository;

        //public ApproveProfileBLL()
        //{
        //    //_View = view;
        //    repository = new ApproveProfileDAL();
        //}

        public ApproveProfileBLL()
        {
            repository = new ApproveProfileDAL();
        }

        public int AddApproveProfile(Guid approveProfileID, string approverName, byte status, string comment, string imageUrl, string videoUrl, DateTime editedTime,
            string profileID, Guid considerAndDecideID, string benefitMoney)
        {
            //return repository.AddApproveProfile(_View.ApproveProfileID, _View.ApproveName, _View.Status, _View.Comment, _View.ImageUrl, _View.VideoUrl, _View.EditedTime, _View.ProfileID, _View.ConsiderAndDecideID, _View.BenefitMoney);
            return repository.AddApproveProfile(approveProfileID, approverName, status, comment, imageUrl, videoUrl, editedTime, profileID, considerAndDecideID, benefitMoney);
        }

        public IEnumerable<CMSApproveProfile> GetListProfileApprove()
        {
            return repository.GetListProfileApprove();
        }

        public CMSApproveProfile GetProfileApproveByApproveProfileID(string ApproveProfileID)
        {
            return repository.GetProfileApproveByApproveProfileID(ApproveProfileID);
        }
    }
}